
var canvas = document.getElementById('jk');

var context;
if (canvas.getContext('2d')) {
	context = canvas.getContext('2d');
} else return;

context.font = '30pt Arial';
drawGrid(context, 'cornflowerblue', 'blue');

context.fillText("MY Canvas", canvas.width/2 - 150, canvas.height/2 + 15);
context.strokeText("MY One Canvas", canvas.width/2 - 150, canvas.height/2 + 50);


function drawGrid (c, fillStyle, strokeStyle) {
	c.save();
	c.fillStyle = fillStyle;
	c.strokeStyle = strokeStyle;
	c.restore();
}
